<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>使用box2d</title>
</head>
<body>
    <p>用box2d创建四周的墙壁，然后创建一定数量的小球，然后从任意高处掉落，碰撞，同时将box2d生成的刚体转换到对应的canvas中。</p>
    <canvas id="canvas" width="500" height="400"></canvas>
    <canvas id="box2d-debug" width="500" height="400"></canvas>
    <script src="/plugins/Box2dWeb-2.1.a.3.js"></script>
    <script src="index.js"></script>
</body>
</html>